home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-18 | 687 b | 16 lines | [TEXT/MPS ] |
- Procedure Call Logger:
-
- Author: Marshall Clow
-
- This is a library that replaces the MPW profiling library and provides
- a breakpoint at every procedure entry / exit. At these points, the library
- calls a user-defined procedure “BreakHere”, which determines whether or not
- to break. If BreakHere returns true, then the library executes a DebugStr,
- where the str is either "Enter: <procedure names>" or "Exit: <procedure name>".
-
- How it works:
- When you compile code with the MPW C or Pascal compilers, and specify
- -trace on, the compilers emit a call to %_BP at the beginning of each procedure
- and a call to %_EP at the end. I wrote alternate versions of these routines to
- do what I wanted.
-